<?php use_stylesheet('main.css') ?>
<?php use_helper('Text') ?>
<?php slot(
  'title',
  sprintf('%s ', $article->getTitle()))
?>

<?php echo $sf_request->getParameter('title'); ?> <br/> 
<?php if ($sf_request->getParameter('token') == $article->getToken() && $sf_user->getId() == $article->getUserId() ) :  ?>
  <?php include_partial('sfBlogArticles/previsualisation', array('article' => $article)) ?>
  <?php endif ?>



                        <div class="post">
                                <h2><a href="#"><?php echo $article->getTitle() ?></a></h2>
                                <img  src="<?php echo '/uploads/cover/'.$article->getCover()?>" alt="" width="550" height="276" />
                                <p class="byline">Publié le  <?php echo  $article->getDateTimeObject('publied_at')->format('d/m/Y') ?> par <a href="#"><?php echo $article->getSfGuardUser()->getUserName() ?></a> dans <a href="<?php echo url_for('categories', $article->getBlogCategory());?>" > <?php echo $article->getBlogCategory(); ?> </a>  </p>
                                <div class="entry">
                                        <?php echo simple_format_text(parseto($article->getRawValue()->getContent())) ?>
                                        <br />
                                        
                                   
                                </div>
                        </div>
            
</div>
 
<?php include_component('sfBlogComments', 'comm', array('articleid' => $article->getId() )); ?>
